package sn.functions;

public class LinearFunction implements ActivationFunction {

	@Override
	public double compute(double x) {
		if (x > 0)
			return x;
		return 0.;
	}

	@Override
	public double derivative(double x) {
		if (x > 0)
			return 1.;
		return 0.;
	}

}
